package com.youge.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author: hcf
 * @qq: 46914685
 * @email: 46914685@qq.com
 * @date: 2020-10-09 12:26
 */
@Controller
public class IndexController {

    /**
     * 首页
     * @return
     */
    @GetMapping("/index")
    public String toIndex() {
        return "ems/login";
    }

    /**
     * 注册页面
     * @return
     */
    @GetMapping("/toRegister")
    public String toRegister() {
        return "ems/regist";
    }

    /**
     * 员工添加页面
     * @return
     */
    @GetMapping("/toSave")
    public String toSave(){
        System.out.println("toSave");
        return "ems/addEmp";
    }
}
